﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using XinYi.CrookedShow.Core;
using XinYi.CrookedShowMode;

namespace XinYi.CrookedTopShow.DAL
{
    public class UserInfoRepository
    {
        #region 前台登录是否存在
        public UserInfo UserInfoIsNotExist(UserInfo userInfo)
        {
            string sql = "select * from [User] where UserName=@UserName and Pwd=@Pwd";
            UserInfo a = DapperHelper<UserInfo>.QuerySingleOrDefault(sql, userInfo);
            return DapperHelper<UserInfo>.QuerySingleOrDefault(sql, userInfo);
        }
        #endregion  
    }
}
